package com.hyy.user.api.pojo;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 用户注册请求参数实体类
 * 用于封装用户注册时提交的信息
 */
@Data
public class UserInfoRegisterRequest {

        @NotBlank(message = "用户名不能为空")
        @Length(max = 20, message = "用户名长度不能超过20")
        private String userName;

        @NotBlank(message = "密码不能为空")
        @Length(max = 20, message = "密码长度不能超过20")
        private String password;

        @Length(max = 64, message = "githubURL长度不能超过64")
        private String githubURL;

        @NotBlank(message = "邮箱不能为空")
        @Length(max = 20, message = "邮箱长度不能超过20")
        private String email;

}
